package com.imooc.repository;

import com.imooc.mo.HrCollectResumeMO;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author liansen
 * @create 06-20-0:04
 */
public interface HrCollectResumeRepository extends MongoRepository<HrCollectResumeMO, String> {

    void deleteByHrIdAndResumeExpectId(String hrId, String resumeExpectId);

    List<HrCollectResumeMO> findByHrIdAndResumeExpectId(String hrId, String resumeExpectId);

    List<HrCollectResumeMO> findAllByHrIdOrderByCreateTimeDesc(String hrId, Pageable pageable);
}
